package scrypto

import (
	"crypto/sha1"
	"crypto/sha256"
	"github.com/spf13/cast"
	"io"
)

func Sha1Str(str string) string {
	h := sha1.New()
	io.WriteString(h, str)
	return cast.ToString(h.Sum(nil))
}


func Sha256Str(str string) string {
	h := sha256.New()
	io.WriteString(h, str)
	return cast.ToString(h.Sum(nil))
}


func Sha512Str(str string) string {
	h := sha256.New()
	io.WriteString(h, str)
	return cast.ToString(h.Sum(nil))
}

